export const Add_Todos = 'AddTodos';
export const Delete_Todos = 'DeleteTodos';
export const Updata_Done = 'UpdataDone'
export const Checke_All = 'CheckeAll'
export const Clear_Done = 'ClearDone'

export const AddTodos = (id, name, done = false) => {
  return {
    type: Add_Todos,
    payload: { id, name, done }
  }
}

export const DeleteTodos = (id) => {
  return {
    type: Delete_Todos,
    payload: { id }
  }
}
export const UpdataDone = (id, done) => {
  return {
    type: Updata_Done,
    payload: { id, done }
  }
}
export const CheckeAll = (flag) => {
  return {
    type: Checke_All,
    payload: { flag }
  }
}
export const ClearDone = () => {
  return {
    type: Clear_Done,
    payload: {}
  }
}
export const hhh = () => {
  return {
    type: "sd",
    payload: {}
  }
}
